package lena;
 
import java.awt.image.BufferedImage;
import java.io.Serializable;

public class ImgChunk implements Serializable{
	private int part;
	private int NbPartTotal;
	private int iDImage;
	private SentImage imgChunk;
	
	
	public ImgChunk(int part, int NbPartTotal, BufferedImage img, int iD){
		this.part = part;
		this.NbPartTotal = NbPartTotal;
		this.imgChunk = new SentImage(img);
		this.iDImage = iD;		
	}
	
	public int getPart() {
		return this.part;
	}
	
	public int getNbPartTotal() {
		return this.NbPartTotal;
	}
	
	public int getiDImage(){
		return this.iDImage;
	}
	
	public BufferedImage getImage() {
		return this.imgChunk.getImage();
	}
}
